<template>
	<view>
		<view  style="z-index: 100;" class="position-absolute left-0 top-0 right-0 bottom-0 flex align-center justify-center">
			
				<view @click="logout" style="width: 85vw;"  class="bg-danger text-white flex align-center justify-center font-md py-2 rounded-circle ">
					退出登录
				</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			logout(){
				uni.showModal({
					content: '是否确定退出登录',
					success:  (result) =>{
						if (result.confirm) {
							this.$store.dispatch('logout').then(res=>{
								uni.showToast({
									title: '退出登录成功',
									icon: 'none'
								});
								
							})
						}
					}
				});
				
			}
		}
	}
</script>

<style>

</style>
